FROM registry.cn-shenzhen.aliyuncs.com/kulalasmile/openjdk:8-jdk-alpine
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \&& echo 'Asia/Shanghai' >/etc/timezon && mkdir -p /skywalking/agent
VOLUME /tmp
ARG JAR_FILE=./target/*.jar
COPY ${JAR_FILE} app.jar
ENV TZ 'Asia/Shanghai'
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8

ENTRYPOINT ["java", \
            "-Dfile.encoding=UTF-8", \
            "-Dsun.jnu.encoding=UTF-8", \
            "-XX:+HeapDumpOnOutOfMemoryError", \
            "-XX:HeapDumpPath='/logs'", \
#            "-Dskywalking.agent.service_name=maple-service-base", \
#            "-javaagent:/skywalking/agent/skywalking-agent.jar", \
            "-jar", "app.jar"]
